home *** CD-ROM | disk | FTP | other *** search
- head 0.13;
- access;
- symbols;
- locks; strict;
- comment @ * @;
-
-
- 0.13
- date 92.08.18.04.46.58; author dglattin; state Exp;
- branches;
- next 0.12;
-
- 0.12
- date 92.04.13.11.43.08; author dennisg; state Exp;
- branches;
- next 0.11;
-
- 0.11
- date 92.01.03.02.55.03; author dennisg; state Exp;
- branches;
- next 0.10;
-
- 0.10
- date 91.12.31.20.13.03; author dennisg; state Exp;
- branches;
- next 0.9;
-
- 0.9
- date 91.12.07.00.49.28; author dennisg; state Exp;
- branches;
- next 0.8;
-
- 0.8
- date 91.12.06.00.35.05; author dennisg; state Exp;
- branches;
- next 0.7;
-
- 0.7
- date 91.11.30.14.19.18; author dennisg; state Exp;
- branches;
- next 0.6;
-
- 0.6
- date 91.11.29.20.01.29; author dennisg; state Exp;
- branches;
- next 0.5;
-
- 0.5
- date 91.11.20.02.06.30; author dennisg; state Exp;
- branches;
- next 0.4;
-
- 0.4
- date 91.11.19.12.37.24; author dennisg; state Exp;
- branches;
- next 0.3;
-
- 0.3
- date 91.11.16.13.32.58; author dennisg; state Exp;
- branches;
- next 0.2;
-
- 0.2
- date 91.11.07.22.30.54; author dennisg; state Exp;
- branches;
- next 0.1;
-
- 0.1
- date 91.10.24.00.45.39; author dennisg; state Exp;
- branches;
- next ;
-
-
- desc
- @This is the definition file for class Object.
- Object is the root of all classes under Objective-C.
- @
-
-
- 0.13
- log
- @Saving a working version before release.
- @
- text
- @/* -*-c-*- */
-
- /* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
-
- This file is part of GNU CC.
-
- GNU CC is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- GNU CC is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with GNU CC; see the file COPYING. If not, write to
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
- /* As a special exception, if you link this library with files
- compiled with GCC to produce an executable, this does not cause
- the resulting executable to be covered by the GNU General Public License.
- This exception does not however invalidate any other reasons why
- the executable file might be covered by the GNU General Public License. */
-
- /*
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/dispatch.common/RCS/Object.h,v 0.12 1992/04/13 11:43:08 dennisg Exp dennisg $
- $Author: dennisg $
- $Date: 1992/04/13 11:43:08 $
- $Log: Object.h,v $
- * Revision 0.12 1992/04/13 11:43:08 dennisg
- * Check in after array version of run-time works.
- * Expect more changes as hash version and other changes are made.
- *
- * Revision 0.11 1992/01/03 02:55:03 dennisg
- * modified to handle new initialization scheme.
- * fixed code structure.
- *
- * Revision 0.10 1991/12/31 20:13:03 dennisg
- * Deleted index variable stuff. Index variables are a hack to the language.
- *
- * Revision 0.9 1991/12/07 00:49:28 dennisg
- * deleted +description:.
- *
- * Revision 0.8 1991/12/06 00:35:05 dennisg
- * deleted perform:with:: method.
- *
- * Revision 0.7 1991/11/30 14:19:18 dennisg
- * implemented archiving.
- *
- * Revision 0.6 1991/11/29 20:01:29 dennisg
- * fixed several const decls. bozo.
- *
- * Revision 0.5 1991/11/20 02:06:30 dennisg
- * returned doesNotRecognize:
- *
- * Revision 0.4 1991/11/19 12:37:24 dennisg
- * minr changes. still in a state of flux.
- *
- * Revision 0.3 1991/11/16 13:32:58 dennisg
- * changed #import statements to #include.
- * this should make gcc2 happy -- geez.
- *
- * Revision 0.2 1991/11/07 22:30:54 dennisg
- * added copyleft
- *
- * Revision 0.1 1991/10/24 00:45:39 dennisg
- * Initial check in. Preliminary development stage.
- *
- */
-
-
- #ifndef _object_INCLUDE_GNU
- #define _object_INCLUDE_GNU
-
- #include <objc.h>
- #include <stdio.h>
- #include <sys/types.h>
-
- #ifdef __NeXT__
- /* Need prototypes for read() and write().
- Most machines put these in stdio.h! */
- #include <libc.h>
- #endif
-
-
-
- /*
- * All classes are derived from Object. As such this is the
- * overhead tacked onto those objects.
- */
- @@interface Object {
- Class_t isa; /* A pointer to the instance's
- class structure.
-
- This structure is the one
- generated by the compiler
- and located in the TEXT
- segment. The run-time uses
- its address as a key to
- run-time information. */
- }
-
- /* Creating, copying, and freeing instances */
-
- + new;
- + free;
- - free;
- - copy;
- - shallowCopy;
- - deepCopy;
-
- /* Identifying classes */
-
- + ( Class_t )class;
- + ( Class_t )superClass;
- - ( Class_t )class;
- - ( Class_t )superClass;
- - ( const char* )name;
-
- /* Identifying and comparing instances */
-
- - self;
- - ( u_int )hash;
- - ( BOOL )isEqual:anObject;
-
- /* Testing inheritance relationships */
-
- - ( BOOL )isKindOf:( Class_t )aClassObject;
- - ( BOOL )isMemberOf:( Class_t )aClassObject;
- - ( BOOL )isKindOfGivenName:( const char* )aClassName;
- - ( BOOL )isMemberOfGivenName:( const char* )aClassName;
-
- /* Testing class functionality */
-
- + ( BOOL )instancesRespondTo:( SEL )aSel;
- - ( BOOL )respondsTo:( SEL )aSel;
-
- /* Sending messages determined at run time */
-
- - perform:( SEL )aSel;
- - perform:( SEL )aSel with:aObject;
-
- /* Posing */
-
- + poseAs:( Class_t )aClassObject;
-
- /* Enforcing intentions */
-
- - subclassResponsibility:( SEL )aSel;
- - notImplemented:( SEL )aSel;
-
- /* Error handling */
-
- - doesNotRecognize:(SEL)aSelector;
- - error:( const char* )aString, ...;
- + error:( const char* )aString, ...;
-
- /* Archiving */
-
- - storeOn:( int )aFd;
- + readFrom:( int )aFd;
- - readFrom:( int )aFd;
- + ( int )version;
- + setVersion:( int )aVersion;
-
- @@end
-
-
- #endif
-
- @
-
-
- 0.12
- log
- @Check in after array version of run-time works.
- Expect more changes as hash version and other changes are made.
- @
- text
- @d1 28
- a28 22
- /* -*-c-*-
- * This file contains declarations for the class Object.
- *
- * Object is the root of all the Objective-C classes. As such it
- * provides services for its subclasses.
- *
- * Copyright (C) 1991 Threaded Technologies Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 1, or any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should receive a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.11 1992/01/03 02:55:03 dennisg Exp dennisg $
- d30 1
- a30 1
- $Date: 1992/01/03 02:55:03 $
- d32 4
- @
-
-
- 0.11
- log
- @modified to handle new initialization scheme.
- fixed code structure.
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.10 1991/12/31 20:13:03 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/12/31 20:13:03 $
- d26 4
- d67 1
- a67 1
- #include <ObjC.h>
- @
-
-
- 0.10
- log
- @Deleted index variable stuff. Index variables are a hack to the language.
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.9 1991/12/07 00:49:28 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/12/07 00:49:28 $
- d26 3
- d63 10
- a72 2
- #include <ObjC.h>
- #include <sys/types.h>
- @
-
-
- 0.9
- log
- @deleted +description:.
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.8 1991/12/06 00:35:05 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/12/06 00:35:05 $
- d26 3
- a141 4
-
- /* Indexed instance variable types */
- - ( u_int )capacity;
- + ( int )ndxVarSize;
- @
-
-
- 0.8
- log
- @deleted perform:with:: method.
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.7 1991/11/30 14:19:18 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/11/30 14:19:18 $
- d26 3
- a142 1
- + ( STR )describe;
- @
-
-
- 0.7
- log
- @implemented archiving.
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.6 1991/11/29 20:01:29 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/11/29 20:01:29 $
- d26 3
- d112 1
- a112 2
- - perform:( SEL )aSel with:anObject;
- - perform:( SEL )aSel with:object1 with:object2;
- @
-
-
- 0.6
- log
- @fixed several const decls. bozo.
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.5 1991/11/20 02:06:30 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/11/20 02:06:30 $
- d26 3
- d129 3
- a131 3
- - awake;
- - write:( int)aFd;
- - read:( int )aFd;
- d134 5
- @
-
-
- 0.5
- log
- @returned doesNotRecognize:
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.4 1991/11/19 12:37:24 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/11/19 12:37:24 $
- d26 3
- d83 1
- a83 1
- - ( const char * )name;
- d95 2
- a96 2
- - ( BOOL )isKindOfGivenName:( STR )aClassName;
- - ( BOOL )isMemberOfGivenName:( STR )aClassName;
- d121 2
- a122 2
- - error:( STR )aString, ...;
- + error:( STR )aString, ...;
- @
-
-
- 0.4
- log
- @minr changes. still in a state of flux.
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.3 1991/11/16 13:32:58 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/11/16 13:32:58 $
- d26 3
- d117 1
- @
-
-
- 0.3
- log
- @changed #import statements to #include.
- this should make gcc2 happy -- geez.
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.2 1991/11/07 22:30:54 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/11/07 22:30:54 $
- d26 4
- d68 2
- a96 5
- /* Obtaining method handles */
-
- - ( IMP )methodFor:( SEL )aSel;
- + ( IMP )instanceMethodFor:( SEL )aSel;
-
- a113 1
- - doesNotRecognize:( SEL )aSel;
- @
-
-
- 0.2
- log
- @added copyleft
- @
- text
- @d22 1
- a22 1
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/Object.h,v 0.1 1991/10/24 00:45:39 dennisg Exp dennisg $
- d24 1
- a24 1
- $Date: 1991/10/24 00:45:39 $
- d26 3
- d38 2
- a39 2
- #import <ObjC.h>
- #import <sys/types.h>
- @
-
-
- 0.1
- log
- @Initial check in. Preliminary development stage.
- @
- text
- @d7 22
- a28 4
- $Header$
- $Author$
- $Date$
- $Log$
- @
-